/*
 * Copyright (c) 2025 Li Auto Inc. and its affiliates
 * Licensed under the Apache License, Version 2.0(the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/*!*********************************************************************************************************************
 * @file        pdur_pbcfg.h
 * @brief       PduR postbuild配置头文件
 * @details     主要包含PduR本地的配置
 * @date        {{get_generation_time_temp()}}
 * @toolversion {{get_vcos_version_temp()}}
 **********************************************************************************************************************/

#ifndef PDUR_PBCFG_H
#define PDUR_PBCFG_H

#include "pdur_types.h"
#include "Compiler.h"

#ifdef __cplusplus
extern "C"
{
#endif

/* Macros */
/* Global Variable Declaration */
#define PDUR_START_SEC_CONST
#include "pdur_memmap.h"
/*!*********************************************************************************************************************
 * @brief          声明PduR_Config
**********************************************************************************************************************/
extern CONST(pdur_pb_config_type, PDUR_CONST) pdur_config;
#define PDUR_STOP_SEC_CONST
#include "pdur_memmap.h"

{%- set pdur_routing_group_dest_pdu_list = get_pdur_routing_groups_dest_pdu_list() %}
{%- set isEmpty = get_pdur_routing_path_group_idx_list_empty() %}
{%- if isEmpty == 'False' %}
/* PduRRoutingPathGroupIndex宏 */
    {%- for name, list in pdur_routing_group_dest_pdu_list.items() %}
{{  ("%-80s" | format("#define PDUR_" ~ name.upper()))}}({{ list['groupid'] }}u)
    {%- endfor %}
{%- endif %}

#ifdef __cplusplus
}
#endif

#endif /* PDUR_PBCFG_H */
{{ "" }}